import request from '@/utils/request'

export function getAdminList(params) {
  return request({
    url:'/admin',
    method:'get',
    params
  })
}

export function addAdmin(data) {
  return request({
    url:'/admin/add',
    method:'post',
    data
  })
}
export function updateAdmin(data) {
  return request({
    url:'/admin/changeAdminInfoBySuper',
    method:'put',
    data
  })
}

export function deleteAdmin(data) {
  return request({
    url:'/admin/id',
    method:'delete',
    params:data
  })
}